﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShiQuan.IotDevice.Entity
{
    /// <summary>
    /// 紫外线消毒设备
    /// </summary>
    public class DeviceDataEntity 
    {
        /// <summary>
        /// 数据唯一标识
        /// </summary>
        [Key]
        [Display(Name = "数据唯一标识"), MaxLength(50)]
        public string Id { get; set; }
        /// <summary>
        /// 设备数据标识
        /// </summary>
        [Display(Name = "设备数据标识"), MaxLength(50)]
        public string DataId { get; set; }
        /// <summary>
        /// 设备唯一标识
        /// </summary>
        [Display(Name = "设备唯一标识"), MaxLength(50)]
        public string SerialNumber { get; set; }
        
        /// <summary>
        /// 操作人
        /// </summary>
        [Display(Name = "操作人"), MaxLength(50)]
        public string OperatorBy { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        [Display(Name = "操作时间")]
        public DateTime? OperatorOn { get; set; }
        /// <summary>
        /// 日期
        /// </summary>
        [Display(Name = "日期")]
        public DateTime? Date { get; set; }
        /// <summary>
        /// 年
        /// </summary>
        [Display(Name = "年")]
        public int? Year { get; set; }
        /// <summary>
        /// 月
        /// </summary>
        [Display(Name = "月")]
        public int? Month { get; set; }
        /// <summary>
        /// 周
        /// </summary>
        [Display(Name = "周")]
        public int? Week { get; set; }
        /// <summary>
        /// 日
        /// </summary>
        [Display(Name = "日")]
        public int? Day { get; set; }
        /// <summary>
        /// 时
        /// </summary>
        [Display(Name = "时")]
        public int? Hour { get; set; }

        /// <summary>
        /// 设备安装标识
        /// </summary>
        [Display(Name = "设备安装标识"), MaxLength(50)]
        public string RefInstallId { get; set; }
        /// <summary>
        /// 被检单位
        /// </summary>
        [Display(Name = "被检单位"), MaxLength(50)]
        public string RefCorpId { get; set; }
        /// <summary>
        /// 被检单位
        /// </summary>
        [Display(Name = "被检单位"), MaxLength(100)]
        public string CorpName { get; set; }
        /// <summary>
        /// 检测设备
        /// </summary>
        [Display(Name = "检测设备"), MaxLength(50)]
        public string RefDeviceId { get; set; }
        /// <summary>
        /// 检测设备
        /// </summary>
        [Display(Name = "检测设备"), MaxLength(100)]
        public string DeviceName { get; set; }
        
        /// <summary>
        /// 监测项
        /// </summary>
        [Display(Name = "监测项"), MaxLength(50)]
        public string Item { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        [Display(Name = "数据"), MaxLength(50)]
        public string Data { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [Display(Name = "单位"), MaxLength(50)]
        public string Unit { get; set; }

        /// <summary>
        /// 显示内容：数据+单位
        /// </summary>
        [Display(Name = "检测项目"), MaxLength(50)]
        public string Text { get; set; }

        /// <summary>
        /// 备注说明
        /// </summary>
        [Display(Name = "备注说明"), MaxLength(255)]
        public string Remark { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary>
        [Display(Name = "创建日期")]
        public DateTime? CreateDate { get; set; }
    }
}
